package com.my.chapter3;

public class practice4 {
    public static void main(String[] args) {
        float distance = 10;
        float time = 2;
        System.out.println("速度是"+calculateSpeed(distance,time));
    }
    static float calculateSpeed(float distance,float time){
        return distance/time;
    }
}
